<?php

/* *
 * 资讯
 */
namespace Common\Model;
use Think\Model;
class EvaluateModel extends BaseModel {

    public function queryForList($page=null, $map=null) {
        $list = $this->alias("ev")
            ->join("left join __CUSTOMER__ cus on cus.customer_id = ev.customer_id")
            ->where(getWhereSqlByMap($map))
            ->order("ev.create_time desc")
            ->limit($page->firstRow . ',' . $page->listRows)
            ->field("ev.*,cus.nickname")
            ->select();

        return $list;

    }

}

